package com.sanben.base.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: cyh
 * @description: mybatisPlus配置
 * @date: 2020/6/5 10:57
 */
@Configuration
public class MybatisPlusConfig {

    /**
     * mybatisPlus分页插件
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        PaginationInterceptor page = new PaginationInterceptor();
        page.setDialectType("mysql");
        return page;
    }
}
